package pl.edu.mimuw.irs.rcp.controller.editor.workflow.policy;

import org.eclipse.gef.commands.Command;
import org.eclipse.gef.editpolicies.BendpointEditPolicy;
import org.eclipse.gef.requests.BendpointRequest;

import pl.edu.mimuw.irs.rcp.controller.editor.workflow.command.CreateBendpointCommand;
import pl.edu.mimuw.irs.rcp.controller.editor.workflow.command.DeleteBendpointCommand;
import pl.edu.mimuw.irs.rcp.controller.editor.workflow.command.MoveBendpointCommand;

public class ArcBendpointEditPolicy extends BendpointEditPolicy {

	// *** Attributes

	// *** Methods

	@Override
	protected Command getCreateBendpointCommand(BendpointRequest arg0) {
		return new CreateBendpointCommand(arg0);
	}

	@Override
	protected Command getDeleteBendpointCommand(BendpointRequest arg0) {
		return new DeleteBendpointCommand(arg0);
	}

	@Override
	protected Command getMoveBendpointCommand(BendpointRequest arg0) {
		return new MoveBendpointCommand(arg0);
	}
}
